﻿@{
    ViewBag.Title = "Liên hệ";
    Layout = "~/Views/Shared/_Layout.Register.cshtml";
}

<form class="form" action="/Contact" method="post" enctype="multipart/form-data">
    <div id="registerForm">
    
        <h2>Liên hệ với vinaglue.com</h2>
	    <div class="title">
		    <h3>Thông tin liên hệ</h3>
	    </div>
	    <div class="error-msg" data-bind="visible: validateForm" >
		    <span class="error">Xin hãy nhập thông tin bên dưới chính xác.</span>
	    </div>			
        @if (!string.IsNullOrEmpty(ViewBag.ErrorMessage))
        {
	        <div class="error-msg">
		        <span class="error">@ViewBag.ErrorMessage</span>
	        </div>	
        }				

        <div class="columns">
            <div class="col" style="width:560px">
                <div class="row">
                    <label for="Fullname">Tên liên hệ</label>
                    <input type="text" class="text" id="Fullname" name="Fullname" maxlength="50" data-bind="value: Fullname" />
                </div>
                <div class="row">
                    <label for="Email">Địa chỉ email</label>
                    <input type="text" class="text" id="Email" name="Email" maxlength="150" data-bind="value: Email" />
                </div>
                <div class="row">
                    <label for="Password">Điện thoại</label>
                    <input type="text" class="text" id="Phone" name="Phone" maxlength="20" data-bind="value: Phone" />
                </div>
                <div class="row">
                    <label for="Message">Nội dung liên hệ</label>
                    <div class="groupinput">
                        <textarea rows="8" cols="50" class="text" id="Message" name="Message" maxlength="4000" data-bind="value: Message"></textarea>
                    </div>
                </div>

                <div class="row">              
                    <label>&nbsp;</label>
                    <input type="submit" class="submit-btn" value="Gửi liên hệ" data-bind="click: SubmitForm" />
                </div>
            </div>
        </div>
    </div>
</form>

@section DataBinding
{    
    <script src="/Scripts/Lib/contactViewModel.js" type="text/javascript"></script>
}